﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.NightFreightConfiguration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.NightFreightConfiguration
{
    /// <summary>
    /// 夜间运费配置
    /// </summary>
    public interface INightFreightConfigurationService
    {
        /// <summary>
        /// 创建夜间运费配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="requestDto">夜间运费配置信息</param>
        /// <returns></returns>
        NightFreightConfigurationViewDto Create(AdminDto admin, NightFreightConfigurationRequestDto requestDto);

        /// <summary>
        /// 获取夜间运费配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="orderExtractProportion">订单抽取比例(百分比)</param>
        /// <param name="startHour">开始小时</param>
        /// <param name="startMinute">开始分钟</param>
        /// <param name="endHour">结束小时</param>
        /// <param name="endMinute">结束分钟</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<NightFreightConfigurationViewDto> Query(AdminDto admin, int? orderExtractProportion, int? startHour, int? startMinute, int? endHour, int? endMinute, int pageIndex, int pageSize);

        /// <summary>
        /// 修改夜间运费配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="putDto">夜间运费配置修改信息</param>
        /// <returns></returns>
        NightFreightConfigurationViewDto Update(AdminDto admin, NightFreightConfigurationPutDto putDto);

        /// <summary>
        /// 删除夜间运费配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="nightFreightConfigurationId">夜间运费配置Id</param>
        void Delete(AdminDto admin, long nightFreightConfigurationId);

        /// <summary>
        /// 删除代理商夜间运费配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="agentNightFreightConfigurationId">代理商夜间运费配置Id</param>
        void DeleteAgent(AdminDto admin, long agentNightFreightConfigurationId);

        /// <summary>
        /// 获取夜间运费配置列表
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="orderExtractProportion">订单抽取比例(百分比)</param>
        /// <param name="startHour">开始小时</param>
        /// <param name="startMinute">开始分钟</param>
        /// <param name="endHour">结束小时</param>
        /// <param name="endMinute">结束分钟</param>
        /// <returns></returns>
        IEnumerable<NightFreightConfigurationViewDto> GetList(AdminDto admin, int? orderExtractProportion, int? startHour, int? startMinute, int? endHour, int? endMinute);

        /// <summary>
        /// 获取夜间运费配置列表
        /// </summary>
        /// <param name="agentRecordId">代理商Id</param>
        /// <returns></returns>
        IEnumerable<NightFreightConfigurationViewDto> GetList(long agentRecordId);
    }
}
